package com.example.lasttrain.common;

import android.app.PendingIntent;

public class SpinnerSettings {
	   
	/** スピナーのインデックスと値
	 *  （stringsに定義しているスピナー内容に連動してここも修正） */
	private final int index0 = 0;
	private final int index1 = 1;
	private final int index2 = 3;
	private final int index3 = 5;
	private final int index4 = 10;
	private final int index5 = 15;
	private final int index6 = 20;
	private final int index7 = 25;
	private final int index8 = 30;
	
	
	/** 引数で受けたindexから何分前かを返却 */
	public int getAlarmTime(int index){
		int alarmTime = 0;

	    switch (index) {
	      case 0: alarmTime = index0; break;
	      case 1: alarmTime = index1; break;
	      case 2: alarmTime = index2; break;
	      case 3: alarmTime = index3; break;
	      case 4: alarmTime = index4; break;
	      case 5: alarmTime = index5; break;
	      case 6: alarmTime = index6; break;
	      case 7: alarmTime = index7; break;
	      case 8: alarmTime = index8; break;
	    }
		return alarmTime;
		
	}

}
